<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .first {
        width: 400px;
        height: 400px;
        margin: auto;
        border: 1px solid black;
      }
      .first .second {
        width: 200px;
        height: 200px;
        display: flex;
        justify-content: center;
        margin: auto;
        margin-top: 30px;
        position: relative;
        overflow: hidden;
      }
      img,
      .second-box {
        width: 200px;
        height: 200px;
        transition: 1s;
      }
      .second:hover img {
        transform: scale(2, 2) skewX(-15deg);
      }
      .second-box {
        /* text-align: center; */
        /* line-height: 200px; */
        opacity: 0;
        background: black;
        color: #fff;
        position: absolute;
        top: 0;
        left: 0;
      }
      .second-box:hover {
        opacity: 0.5;
      }
      .first .second .second-box div{
        width: 32px;
        height: 34px;
        background: url("./img/zoomico.png") no-repeat;
        margin: 30px auto;
        transition: 1s;
      }

      .first .second .second-box div:hover {
        background-position: 0 -30px;
      }
    </style>
  </head>
  <body>
    <div class="first">
      <div class="second">
        <img src="./img/3.jpg" alt="" />
        <div class="second-box">测试一
          <div></div>
        </div>
      </div>
    </div>
  </body>
</html>
